"""
内置的heapq模块，实现堆相关操作

"""
import random
import heapq


li = [i for i in range(100)]
random.shuffle(li)


print(li)

# 建堆
heapq.heapify(li)

print(li)

# pop最小的数值
heapq.heappop(li)



